﻿using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.Modularity;
using Volo.Abp.VirtualFileSystem;
using ERP.Workflow.Designer.Application.Contracts;
using Volo.Abp.Http.Client;

namespace ERP.Workflow.Designer.HttpApi.Client;

[DependsOn(
        typeof(WorkflowDesignerApplicationContractsModule),
        typeof(AbpHttpClientModule)
)]
public class WorkflowDesignerHttpApiClientModule : AbpModule
{
    public const string RemoteServiceName = "WorkflowDesigner";

    public override void ConfigureServices(ServiceConfigurationContext context)
    {
        context.Services.AddHttpClientProxies(
            typeof(WorkflowDesignerApplicationContractsModule).Assembly,
            RemoteServiceName
        );

        //Configure<AbpVirtualFileSystemOptions>(options =>
        //{
        //    options.FileSets.AddEmbedded<WorkflowDesignerHttpApiClientModule>();
        //});
    }
}
